<?php

namespace app\business\controller;

use think\Controller;
use Util\SysDb;

class Sysstoparea extends Controller
{
    public function Sysstoparealist()
    {
        $this->db = new SysDb();
        $admin = $this->db->table('sys_stop_area')->lists();
        if (!$admin) {
            exit(json_encode(['code' => 1, 'message' => 'error',"result"=>"无停止地址" ]));
        }else{
            exit(json_encode(['message' =>'succ','result'=>$admin]));
        }
    }
}
